package cn.kkcxy.blog.system.service.impl.sys;

import cn.kkcxy.blog.core.vo.admin.system.UserLoginLogInfoVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.kkcxy.blog.core.entity.sys.SysUserLoginLog;
import cn.kkcxy.blog.system.service.sys.SysUserLoginLogService;
import cn.kkcxy.blog.system.mapper.sys.SysUserLoginLogMapper;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author kk
* @description 针对表【sys_user_login_log】的数据库操作Service实现
* @createDate 2024-09-11 00:50:27
*/
@Slf4j
@Service
public class SysUserLoginLogServiceImpl extends ServiceImpl<SysUserLoginLogMapper, SysUserLoginLog> implements SysUserLoginLogService{

    @Resource
    private SysUserLoginLogMapper sysUserLoginLogMapper;

    /**
     * 查询用户近期登录日志
     */
    @Override
    public List<UserLoginLogInfoVO> getUserRecentLoginLog(String userId) {
        return sysUserLoginLogMapper.getUserRecentLoginLog(userId);
    }
}




